package threadLearn;

/**
 * 可重入粒度测试三：调用父类同步方法
 * @author 12609
 *
 */
public class SynchronizedSuperClass {
	public synchronized void doSth() {
		System.out.println("我是父类方法。。。");
	}
	public static void main(String[] args) {
		Child c = new Child();
		c.doSth();
	}
}

class Child extends SynchronizedSuperClass{
	public synchronized void doSth() {
		System.out.println("我是子类方法。。。");
		super.doSth();
	}
	
	
}

